#!/bin/bash
LANG=en_US.UTF-8
path1=/usr/YMD/env.sh
path2=/usr/YMD/scripts/
url=https://gitee.com/pj-xiaoyu/YMD/raw/master
sed -i '/\/usr\/YMD\env\.sh/d' /etc/crontab
#sed -i "15a 15 3,18 * * * root bash /usr/YMD/config/check.sh" /etc/crontab

cd $path2
sed -i "15a 18 8\-22\/1 * * * root bash $path1 YMD_ksjsb" /etc/crontab
wget ${url}/ksjsb.js -O YMD_ksjsb.js
#快手极速版